<main>
  <?php
  $chapter = $_SESSION['chapterPanel'];
  $subject = $_SESSION['subjectPanel'];
  echo "<center><h1>" . $subject . ": " . $chapter . "</div></h1></center>";
  ?>
  <div class="form">
    <form action="/teacher/teacher.php" method="POST">
      <p>Question type</p>
      <label class="switch">
        <input type="checkbox" name="questionTypeMultiple" <?php if (isset($_POST['questionTypeMultiple'])) echo "checked ='checked'"; ?> onclick="this.form.submit()">
        <span class="slider round"></span>
      </label><br><br>
    </form>
  </div>
  <div class="form">
    <form action="/teacher/formLogic.php" method="POST">

      <label for="question">Question</label>
      <input type="text" id="question" name="question" placeholder="question text.." required>

      <label for="addPoints">Points for correct answer (0-10)</label>
      <input type="number" id="addPoints" name="addPoints" step="0.01" min="0" max="10" required><br>

      <label for="cutPoints">Minus points for wrong answer (0-10)</label>
      <input type="number" id="cutPoints" name="cutPoints" step="0.01" min="0" max="10" required><br><br>

      <input type="radio" name="answerTrueFalse" value="T" id="true" checked />
      <label for="true">True</label>
      <input type="radio" name="answerTrueFalse" value="F" id="false" />
      <label for="false">False</label>

      <input type="submit" value="Submit">
    </form>
  </div>
</main>